import Vue from 'vue'
import VueI18n from 'vue-i18n'

Vue.use(VueI18n)
const messages = {
  en: {},
  zh: {}
}

let localLanguage = localStorage.getItem('localLanguage')
const i18n = new VueI18n({
  locale: localLanguage === undefined ? 'zh' : localLanguage, // set locale
  messages // set locale messages
})

export default i18n
